package com.myway.service.impl;

import com.myway.dao.SysFootColumnMapper;
import com.myway.pojo.SysFootColumn;
import com.myway.service.FootService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by yufei on 2018/1/15.
 */
@Service
@Slf4j
public class FootServiceImpl implements FootService {

    @Autowired
    private SysFootColumnMapper sysFootColumnMapper;

    @Transactional
    @Override
    public List<SysFootColumn> page(String type) {
        List<SysFootColumn> list = sysFootColumnMapper.selectByType(type);
        return list;
    }
}
